from utils import *
import os.path

conn = dbconn()

for id, release, num, path in all_discs(conn) :
	#comments = vorbis_comments(conn, release, id, num)
	path = os.path.join(flacdir, path)
	flacpaths, cuepaths = find_flac_file(conn, release, num)
	comments = get_flac_comments(flacpaths[0])
	for key, value in comments :
		print u"'%s=%s'" % (key, value)
	print
	
